package com.ym.medical.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ym.base.enums.FlagEnum;
import com.ym.medical.enums.AuditStateEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import lombok.Data;
import java.util.Date;

/**
 * 主题回复对象 subject_reply
 *
 * @author ym
 * @date 2020-08-24
 */
@ApiModel("主题回复-列表")
@Data
public class SubjectReplyListPcVO implements Serializable{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("用户(评论者)ID")
    private Long userId;

    @ApiModelProperty("主题ID")
    private Long subjectId;

    @ApiModelProperty("被回复ID(父级节点ID)")
    private Long parentId;

    @ApiModelProperty("附件ID")
    private String attrId;

    @ApiModelProperty("回复内容")
    private String content;

    @ApiModelProperty("审核人")
    private Long auditSb;

    @ApiModelProperty("审核时间")
    private Date auditTime;

    @ApiModelProperty("审核状态 (01- 待审核 02-审核中 03-审核通过 04-审核未通过)")
    @JsonSerialize(converter = AuditStateEnum.Covert.class)
    private String auditState;

    @ApiModelProperty("审核说明")
    private String auditRemark;

    @ApiModelProperty("点赞数")
    private Integer likeNum;

    @ApiModelProperty("删除标志")
    @JsonSerialize(converter = FlagEnum.Covert.class)
    private String deleted;

}
